body{
    font-family: "微软雅黑";
    font-size: 14px;
}
.container{
    width: 1226px;
    margin: 0 auto;
    min-width: 1226px;
}
.show{
    display: block;
}
.hide{
    display: none;
}
/* ==================================================顶部========================================== */
.top{
    height: 40px;
    color: #b0b0b0;
    background-color: #333;
    font-size: 12px;
    line-height: 40px;
}
.top-box{
    height: 100%;
}
/* 顶部导航 */
.top-nav{
    float: left;
    display: flex;
}
.top-nav li a:hover{
    color: #eee;
}
.top .sep{
    margin: 0 5px;
    color: #424242;
}
/* 登录注册 */
.top-info{
    float: right;
    display: flex;
    margin-right: 30px;
}
.top-info li a:hover{
    color: #eee;
}
/* 购物车 */
.top .shop-car{
    float: right;
    text-align: center;
    width: 120px;
    position: relative;
    background-color: white;
    z-index: 100;
}
.top .shop-car>a{
    display: block;
    width: 100%;
    height: 100%;
    background-color: #424242;
    position: relative;
    z-index: 100;
}
.top .shop-car:hover a{
    background-color: #fff;
    color: #ff6700;
}
.top .shop-car .car-menu{
    width: 300px;
    height: 98px;
    background-color: #fff;
    box-shadow: 0 0 3px #333;
    line-height: 98px;
    text-align: center;
    color: #333;
    position: absolute;
    right: 0;
    top: 40px;
    z-index: 99;
}
/* ==============================================-头部========================================== */
header{
    position: relative;
    z-index: 99;    
}
.header{
    height: 100px;
}
.header .logo{
    float: left;
    height: 100%;
    display: flex;
    align-items: center;
}
.header .logo .milogo{
    width: 55px;
    height: 55px;
    background-color: #ff6700;
    background-image: url("../img/mi-logo.png");
    background-position: center center;
}
.header .nav{
    float: left;
    display: flex;
    height: 100%;
    padding-top: 12px;
}
.header .nav li{
    font-size: 16px;
    color: #333;
    padding: 28px 10px 0 10px;
}
.header .nav li:hover a{
    color: #ff6700;
}
.header .search{
    float: right;
    margin: 25px 0;
    width: 295px;
    height: 50px;
    position: relative;
}
.header .search #search{
    float: left;
    width: 245px;
    height: 100%;
    border: 1px solid #ccc;
    border-right: none;
    outline: none;
    padding: 0 10px;
    font-size: 16px;
}
.header .search .search-btn{
    float: left;
    width: 50px;
    height: 100%;
    border: 1px solid #ccc;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}
.header .search .search-btn:hover{
    background-color: #ff6700;
    border-color: #ff6700;
    color: #fff;
}
.header .search .search-word{
    height: 50px;
    line-height: 50px;
    text-align: center;
    position: absolute;
    top: 0px;
    right: 60px;
    font-size: 12px;
}
.header .search .search-word a{
    display: inline-block;
    background-color: #ddd;
    line-height: 16px;
    margin: 2px;
    padding: 2px;
}
.header .search .search-word a:hover{
    background-color: #ff6700;
    color: #fff;
}
.header .search .search-list{
    /* display: block; */
    width: 246px;
    position: absolute;
    top: 50px;
    left: 0;
    border: 1px solid #ff6700;
    border-top: none;
    background-color: white;
}
.header .search .search-list li{
    padding: 7px 10px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.header .search .search-list li span:last-child{
    color: #999;
}
.header .search .search-list li:hover{
    background-color: #eee;
}
/* 头部下拉菜单 */
header .nav-sub{
    width: 100%;
    height: 240px;
    border-top: 1px solid red;
    background-color: white;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 0;
    top: 100px;
    display: none;
}
header .nav-sub ul{
    display: none;
}







/* ==========================================轮播图========================================== */
.banner{
    width: 100%;
    height: 460px;
    position: relative;
}
.banner .banner-img{
    width: 100%;
    height: 100%;
}
.banner .banner-img li{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; 
    left: 0;
    display: none;
}
.banner .banner-img li.current{
    display: block;
}
.banner .indicator{
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
}
.banner .indicator li{
    width: 10px;
    height: 10px;
    margin: 5px;
    border-radius: 50%;
    border: 2px solid #999;
    background-color: #333;
    cursor: pointer;
}
.banner .indicator li:hover,
.banner .indicator li.active{
    background-color: #eee;
}
.banner .banner-btn li{
    width: 41px;
    height: 69px;
    background: url("../img/icon-slides.png") -83px 0;
    position: absolute;
    top: calc(50% - 34px);
    cursor: pointer;
}
.banner .banner-btn li.prev{
    left: 234px;
}
.banner .banner-btn li.prev:hover{
    background-position: 0 0;
}
.banner .banner-btn li.next{
    background-position: -123px 0;
    right: 0;
}
.banner .banner-btn li.next:hover{
    background-position: -41px 0;
}

/* -----------------------------------------分类列表--------------------------------- */
.categary{
    width: 234px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6)
}
.categary .categary-list{
    width: 100%;
    height: 100%;
    padding: 20px 0;
    color: #fff;
}
.categary .categary-list li{
    width: 100%;
    height: 42px;
    line-height: 42px;
    display: flex;
}
.categary .categary-list li.active{
    background-color: #ff6700;
}
.categary .categary-list li a{
    width: 100%;
    height: 100%;
    padding-left: 30px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.categary .categary-list li a i{
    font-size: 20px;
    font-weight: bold;
}
.categary .categary-sub{
    /* display: block; */
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
    position: absolute;
    left: 234px;
    top: 0;
    height: 100%;
}
.categary .categary-sub .list{
    display: flex;
}
.categary .categary-sub .list ul{
    width: 248px;
    
}

/* ===============================活动及热门列表====================================== */
.activities{
    margin: 14px auto 26px auto;
    display: flex;
    justify-content: space-between;
}
.activity{
    width: 234px;
    height: 170px;
    padding: 3px;
    display: flex;
    flex-wrap: wrap;
    background-color: #5f5750;
    text-align: center;
    color: #ddd;
    font-size: 12px;
}
.activity li{
    width: 33.33%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.activity li:hover{
    color: white;
}
.activity li::after{
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    height: 70px;
    width: 1px;
    background-color: #665e57;
}
.activity li::before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 6px;
    width: 64px;
    height: 1px;
    background-color: #665e57;
}
.activity li:nth-child(4)::before,
.activity li:nth-child(5)::before,
.activity li:nth-child(6)::before,
.activity li:nth-child(6)::after,
.activity li:nth-child(3)::after{
    background-color: transparent;
}
.activities .hot{
    width: 978px;
    height: 170px;
    display: flex;
    justify-content: space-between;
}
.activities .hot li{
    width: 316px;
    height: 170px;
    transition: all 0.2s linear;
}
.activities .hot li:hover{
    box-shadow: 0 20px 20px #eee;
}
.activities .hot li img{
    width: 100%;
    height: 100%;
}
/* -------------------------------------------小米明星单品------------------------------------------- */

.title{
    display: flex;
    justify-content: space-between;
    height: 58px;
}
.title h2{
    font-weight: normal;
    font-size: 22px;
    line-height: 58px;
    color: #333;
}
.danpin{
    margin-bottom: 40px;
    overflow: hidden;
}
.danpin .title .btn{
    display: flex;
    padding: 14px 0;
}
.danpin .title .btn a{
    width: 36px;
    height: 30px;
    line-height: 28px;
    border: 1px solid #e0e0e0;
    text-align: center;
    color: #e0e0e0;
    transition: all 0.5s linear;
}
.danpin .title .btn a i{
    font-size: 26px;
}
 .danpin .title .btn a.active{
    color: #b0b0b0;
}
.danpin .title .btn a.active:hover{
    color: #ff6700;
}
.danpin .info{
    width: 200%;
    height: 300px;
    display: flex;
    position: relative;
    
}
.danpin .info .info-list{
    width: 1226px;
    display: flex;
    justify-content: space-between;
}
.danpin .info li{
    width: 234px;
    height: 300px;
    background-color: #eee;
    text-align: center;
    line-height: 20px;
    border-top: 1px solid #ffac13;
}
.danpin .info li a{
    display: block;
    width: 100%;
    margin-top: 30px;
}
.danpin .info li a img{
    width: 160px;
    height: 160px;
}
.name{
    padding-top: 10px;
}
.desc{
    color: #aaa;
    line-height: 20px;
    font-size: 12px;
}
.price{
    color: #ff6700;
    line-height: 30px;
}
.dis{
    color: #bbb;
    text-decoration: line-through;
    padding-left: 5px;
}
/* ---------------------------------主要内容部分----------------------------------- */
main{
    background-color: #f5f5f5;
    padding-top: 50px;
    height: 4100px;
}
main .container{
    margin-bottom: 8px;
}
.tab-list{
    display: flex;
    margin-top: 14px;
}
.tab-list li{
    height: 30px;
    line-height: 30px;
    margin-left: 30px;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s linear 0.1s;
    cursor: pointer;
}
.tab-list li.active{
    color: #ff6700;
    border-color: #ff6700;
}
.product{
    display: flex;
    justify-content: space-between;
}
.product .left{
    width: 243px;
    height: 614px;
}
.product .right ul li{
    float: left;
    width: 234px;
    height: 300px;
    margin-left: 14px;
    margin-bottom: 14px;
    background-color: white;
    padding-top: 34px;
    padding-bottom: 20px;
    text-align: center;
    position: relative;
    transition:  all 0.2s;
    overflow: hidden;
}
.product .right ul li img{
    width: 150px;
    height: 150px;
}
.product .right ul li:nth-child(8),
.product .right ul li:nth-child(9){
    height: 143px;
    display: flex;
}
.product .right ul li:nth-child(8) a,
.product .right ul li:nth-child(9) a{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    text-align: left;
}
.product .right ul li:nth-child(8) img{
    width: 80px;
    height: 80px;
}
.product .right ul li:nth-child(8) .desc{
    color: #333;
    font-size: 14px;
}
.product .right ul li:nth-child(9) i{
    color: #ff6700;
}
.product .right ul li:nth-child(9) .hot{
    color: #666;
    font-size: 12px;
}
.product li.active{
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translate(0,-2px);
}
.product .move{
    display: block;
    background-color: #ff6700;
    width: 100%;
    height: 76px;
    position: absolute;
    left: 0;
    bottom: -76px;
    color: white;
    text-align: left;
    font-size: 12px;
    padding: 10px;
}

/* ------------------------------------------内容------------------------------------------- */

.content{
    width: 100%;
    height: 374px;
    display: flex;
    justify-content: space-between;
}
.content h3{
    margin-bottom: 8px;
}
.content li{
    width: 296px;
    height: 420px;
    background-color: white;
    border-top: 1px solid orange;
    text-align: center;
    padding-top: 45px;
    position: relative;
    overflow: hidden;
}
.content li .list{
    width: 300%;
    position: relative;
    display: flex;
}
.content .list a{
    display: block;
    width: 100%;
}
.content .list .name{
    font-size: 20px;
    margin-bottom: 10px;
}
.content .list .desc{
    width: 200px;
    margin: 10px auto;
}
.content .list .desc{
    width: 200px;
    margin: 10px auto;
}
.content .list img{
    height: 154px;
}
.content .indicator{
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}
.content .indicator span{
    width: 6px;
    height: 6px;
    background-color: #aaa;
    border-radius: 50%;
    margin: 10px;
    cursor: pointer;
    box-sizing: content-box;
    border: 2px solid transparent;
}
.content .indicator span.active{
    border-color: #ff6700;
    background-color: white;
}
.content .btn span{
    cursor: pointer;
    position: absolute;
    top: calc(50% - 24px);
    width: 20px;
    height: 48px;
    line-height: 48px;
    background-color: #eee;
    transition: all 0.3s linear;
    opacity: 0;
}
.content .btn .prev{
    left: 0;
}
.content .btn .next{
    right: 0;
}
.content .btn span i{
    color: white;
    font-size: 20px;
    font-weight: bold;
}
.content li:hover .btn span{
    opacity: 1;
}
.content .btn span:hover{
    background-color: #999;
}


/* 书 */
.content .shu .list,
.content .youxi .list{
    width: 300%;
}
.content .miui .list,
.content .yingyong .list{
    width: 400%;
}

.site-footer{
    margin-top: 20px;
}

.site-footer .footer-service {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}
.site-footer .list-service {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.site-footer .list-service li:first-child {
    border-left: 0;
}
.site-footer .list-service a {
 display: block;
    color: #616161;
         margin-top: -10px;  
}
.site-footer .list-service .iconfont {
    margin-right: 6px;
    font-size: 24px;
    line-height: 24px;
    vertical-align: -4px;
}
.site-footer .list-service li {
    float: left;
    width: 19.8%;
    height: 25px;
    border-left: 1px solid #e0e0e0;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    margin-top: 10px;
}
.site-footer .footer-links {
    padding: 40px 0;
}
.site-footer .footer-links .col-links {
    float: left;
    width: 160px;
    height: 112px;
    margin: 0;
}
.site-footer .footer-links .col-links dt {
    margin: -1px 0 26px;
    font-size: 14px;
    line-height: 1.25;
    color: #424242;
}
.site-footer .footer-links .col-links dt:hover{
    color: #ff6709;
    cursor: pointer;
}
.site-footer .footer-links .col-links dd {
    margin: 10px 0 0;
    font-size: 12px;
}
.site-footer .footer-links .col-links a {
    color: #757575;
}
.site-footer .footer-links .col-links a:hover{
    color: #ff6700;
}
.site-footer .footer-links .col-contact {
    float: right;
    width: 251px;
    height: 112px;
    border-left: 1px solid #e0e0e0;
    text-align: center;
    color: #616161;
}
.site-footer .footer-links .col-contact .phone {
    margin: 0 0 5px;
    font-size: 22px;
    line-height: 1;
    color: #ff6700;
}
.site-footer .footer-links .col-contact p {
    margin: 0 0 16px;
    font-size: 12px;
}
.site-footer .footer-links .col-contact a{
    border: 1px solid #ff6700;
    color: #ff6700
    
}
.site-footer .footer-links .col-contact a:hover{
    background-color: #ff6700;
    color: white;
}
.site-info {
    padding: 30px 0;
    font-size: 12px;
    background: #fafafa;
    height: 166px;
}
.site-info .logo {
    float: left;
    width: 57px;
    height: 57px;
    margin-right: 10px;
}
.site-info .info-text {
    float: left;
    color: #b0b0b0;
}
.site-info .info-text p {
    margin: 0;
    line-height: 18px;
}

.site-info .info-text .sites a {
    color: #757575;
}
.site-info .info-text p a:hover{
    color: #ff6700;
}
.site-info .info-links {
    float: right;
    height: 28px;
    margin: 4px 0 0;
}
.site-info .info-links img {
    width: auto;
    height: 28px;
    margin-left: 7px;
}
 .site-info .slogan {
    margin: 30px auto 0;
    width: 267px;
    height: 19px;
} 
.list-service li a:hover{
   color: #ff6700;
}

